#pragma  once

#include "BasicType.h"
#include "LightFile.h"
#include "LightAbstractRenderer.h"

namespace LightPlayer {

	class LightPlayer {
		pool<LightFile>				m_FilePool;
		array<LightFile*>			m_Files;
		LightAbstractRenderer*		m_pRenderer;
	public:
		LightPlayer();
		void init();

		void SetRenderer(LightAbstractRenderer* pRenderer);
		void OpenSwfFile(const char* filename); 

		void update(float dt);
		void draw();
	};

};